/*
 * @Autor: Gct
 * @Description: 评论相关接口
 * @Date: 2022-04-15 14:27:03
 * @LastEditors: Gct
 * @LastEditTime: 2022-04-15 14:31:31
 */
import { get, post } from '@/utils/request'

/**
 * @description: 分页展示所有评论
 * @param {*}
 * @return {*}
 * @author: Gct
 */
export function pageQuery(data) {
  return get('/comment/pageQuery', data)
}

/**
 * @description: 批量删除评论
 * @param {*} data
 * @return {*}
 * @author: Gct
 */
export function batchDelete(data) {
  return post('/comment/batchDelete', data)
}

/**
 * @description: 删除评论
 * @param {*}
 * @return {*}
 * @author: Gct
 */
export function deleteById(data) {
  return get('/comment/deleteById', data)
}

/**
 * @description: 审核评论
 * @param {*}
 * @return {*}
 * @author: Gct
 */
export function check(data) {
  return get('/comment/check', data)
}